home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / comm / misc / GcallWait.lha / GCW.doc < prev    next >
Encoding:
Text File  |  1995-03-14  |  4.4 KB  |  130 lines

  1. GCW  (Gnome's Call Waiting switcher)     - Any serial device
  2. ======================================
  3.  with particular reference to use with Trapdoor
  4.  
  5. FOR USE ON BRITISH TELECOM SYSTEMS
  6. -----------------------------------
  7.  
  8. 1. Why GCW?
  9. ------------
  10. Anyone who uses the BT 'Call Waiting' facility and also uses a modem
  11. on the same phone line will probably have discovered that if you get a
  12. Call Waiting beep while your modem is active, the modem is liable to
  13. drop the line.
  14.  
  15. There are two obvious remedies:
  16.  
  17. 1. Stop using Call Waiting. This is silly, since you still pay for it.
  18.  
  19. 2. Switch off Call Waiting while your modem is using the line. Switch
  20.     it back on when you have finished.
  21.  
  22. This is easy to do manually.  Dial #43# before using the modem.  And
  23. dial *43# to restore Call Waiting when you've finished on the modem.
  24. But will you remember?
  25.  
  26. Switching off Call Waiting is easily done by putting the following
  27. into your modem intialize string:  ATDT#43# (+ 'return')
  28.  
  29. This must be followed by a 'return' code, which is '|' for Trapdoor,
  30. '^M' for Ncomm, and \r' for some other programs.  Find out which in
  31. your software  manual.
  32.  
  33. Restoring Call Waiting is harder to do automatically.  In particular,
  34. Trapdoor will drop the line at the end of a session if you abort it
  35. due to a busy tone, or no reply.  On a busy tone, Trapdoor goes into a
  36. retry loop which can only be aborted by using Esc.  Then it closes
  37. immediately.
  38.  
  39. In addition, Trapdoor dos not obey an AFTERSESSION command if there
  40. was nothing sent nor received.  And it doesn't obey a hangup command
  41. if the other end drops the line - or if you use 'drop DT' to hang up.
  42.  
  43. So these are reasons why trying to switch ON Call Waiting by Trapdoor
  44. is not reliable.
  45.  
  46.  
  47. 2. How?
  48. ---------
  49. So my GCW program was born.  I call GCW in Trapdoor's AFTERSESSION
  50. script, with the ON switch.  I also have it on a hot-key and can dab
  51. that if I hear that the modem has not been told to restore CW.  You can
  52. tell, since you hear the modem start to say "Call waiting is in
  53. operation".  You must have enough delay to allow the start of the
  54. recorded message to return to you.  If you drop the line too soon,
  55. your Call Waiting will not be switched (on or off).  The delay I use
  56. has been determined by experiment.
  57.  
  58.  
  59. 3. Usage: the command line.
  60. ----------------------------
  61.  GCW [ON] [-w<waitvalue>] [-d<devicename>] [-u<unitnumber>]
  62.   e.g.  GCW -w3 -dgvpser.device -u1
  63.  
  64.   Defaults: OFF  waitvalue=2  devicename=serial.device unitnumber=0 
  65.  
  66.   waitvalue is the delay in seconds between dialling and hanging up.
  67. You can increase this if you find 2 seconds not long enough. This will
  68. depend on how fast the modem dials, and other factors. 5 seconds is
  69. normally ample.  Check results by dialling *#43# and listen to Digital
  70. Dorothy's recorded message.
  71.  
  72. Arguments may be in any sequence, and are not case-conscious. (But
  73. the device name IS case-conscious, and must be correct.)
  74.  
  75. If you forget, enter GCW ? and you will see the usage displayed.
  76.  
  77.  
  78. 4. What GCW does
  79. -----------------
  80. Putting it simply, GCW opens the serial port in shared mode and sends
  81. a dial command to the modem.
  82.  
  83. GCW also opens the timer, and a message port to read anything the
  84. modem sends back.
  85.  
  86. The timer is needed to make GCW stop running after n seconds - just long
  87. enough for the recorded message from BT to start coming in.  If you don't
  88. wait for this, then Call Waiting doesn't get activated.
  89.  
  90. The read port is necessary as otherwise the modem chokes, with nowhere to
  91. send it's replies.
  92.  
  93.  
  94. 5. Call Waiting with Trapdoor (and other comms software)
  95. -----------------------------
  96. - Here is a typical "modem initialize" command for Trapdoor:
  97.  
  98.      MODEMINIT "~~+++~~~ATZ|~~~~~~ATDT#43#|~~~~~~~~~~~~ATH|~~~~"
  99.  
  100.      Note that the pipe character | means 'return' in Trapdoor configs.
  101.  
  102.  
  103. - Here is my Trapdoor aftersession string, using GCW:
  104.  
  105.      AFTERSESSION "run GCW -w3 -dgvpser.device -u1 ON"
  106.  
  107.  
  108. - Here is my Terminus initialize (can be used in any comms program):
  109.  
  110.     "ATZ^M~~~ATDT#43#^M~~~~~~~ATH^M"
  111.  
  112.  
  113. - Here is a Terminus 'Hangup & restore call waiting' string.  This can also
  114. be operated 'manually' by pressing rt-Amiga/H
  115.  
  116.      MODEMHANGUPCMD$ = "ATH^M~~~ATDT*43#^M~~~~~ATH^M"
  117.  
  118.  
  119.            -------------------------------------------
  120.  
  121. GCW was compiled & linked with SAS/C Vn6.55
  122. GCW has been tested with Enforcer and Codewatcher on an Amiga 4000/40,
  123.     using a GVP ioExtender providing two extra serial ports,
  124.     (gvpser.device, units 0 and 1).
  125.  
  126. John Marchant (aka 'Gnome')   
  127.  
  128. Fidonet: 2:2500/167.15      Internet: gnome@martinac.demon.co.uk
  129.  
  130.